﻿using MediatR;
using Process.ErrorCode;
using System.Collections.Generic;

namespace Process.API.Application.Command.Action.ProductionProcess
{
    public class AddProductionProcessTableCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 生产工单工序集合（批量添加）
        /// </summary>
        public List<AddProductionProcessTableItem> Items { get; set; } = new();
    }

    /// <summary>
    /// 生产工单工序项
    /// </summary>
    public class AddProductionProcessTableItem
    {
        /// <summary>
        /// 工序(1是第一步工序、2是第二步工序、3是第三步工序、4是第四步工序)
        /// </summary>
        public int ProcessNumber { get; set; }
        /// <summary>
        /// 生产工单ID
        /// </summary>
        public int ProductionOrdersId { get; set; }
        /// <summary>
        /// 工序ID
        /// </summary>
        public int ProcessId { get; set; }
    }
}
